package cn.kgc.springboot.vue.response;

/**
 * @author 课工场
 * @date 2024/12/18
 * @description
 */
public enum ResponseStatus {

    SUCCESS(0,"操作成功"),
    FAIL(110,"操作失败"),
    UN_AUTH(401,"请认证后访问"),
    UN_AUTHOR(403,"没有权限,请联系管理员..."),
    ERROR(500,"系统异常,请刷新重试...");

    private Integer code;
    private String message;

    ResponseStatus(Integer code,String message){
        this.code = code;
        this.message = message;
    }
    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
